home *** CD-ROM | disk | FTP | other *** search
- %%BeginResource: procset pdfasc.prc 6.0 1
- %%Copyright: Copyright 1992-2003 Adobe Systems Incorporated. All Rights Reserved.
- /ASR {
- 13 dict begin
- /mirV? exch def
- /mirH? exch def
- /center? exch def
- /autorotate? exch def
- /angle exch def
- /shrink exch def
- /Pury exch def
- /Purx exch def
- /Plly exch def
- /Pllx exch def
- /Dury exch def
- /Durx exch def
- /Dlly exch def
- /Dllx exch def
- Dury 0 eq Durx 0 eq and Dlly 0 eq Dllx 0 eq and and
- { shrink 0 gt { GClipBBox } { GPageBBox } ifelse }
- { ITransDBBox }
- ifelse
- /PHt Pury Plly sub def
- /PW Purx Pllx sub def
- /DHt Dury Dlly sub def
- /DW Durx Dllx sub def
- angle 90 eq angle 270 eq or
- {
- PHt /PHt PW def /PW exch def
- } if
- autorotate? PHt PW ne and DHt DW ne and
- {
- DHt DW ge
- PHt PW ge
- ne
- { /angle angle 90 add def
- PHt /PHt PW def /PW exch def
- }
- if
- } if
- angle 0 ne
- {
- /angle angle 360 mod def
- angle rotate
- angle 90 eq
- { 0 DW neg translate }
- if
- angle 180 eq
- { DW neg DHt neg translate }
- if
- angle 270 eq
- { DHt neg 0 translate }
- if
- } if
- center?
- {
- ITransBBox
- Durx Dllx add 2 div Dury Dlly add 2 div
- Purx Pllx add -2 div Pury Plly add -2 div
- 3 -1 roll add exch
- 3 -1 roll add exch
- translate
- }
- {
- ITransBBox
- angle 0 eq
- {Dllx Pllx sub Dury Pury sub}
- if
- angle 90 eq
- {Durx Purx sub Dury Pury sub}
- if
- angle 180 eq
- {Durx Purx sub Dlly Plly sub}
- if
- angle 270 eq
- {Dllx Pllx sub Dlly Plly sub}
- if
- translate
- }
- ifelse
- mirH? mirV? or
- {
- ITransBBox
- mirH?
- {
- -1 1 scale
- Durx Dllx add neg 0 translate
- } if
- mirV?
- {
- 1 -1 scale
- 0 Dury Dlly add neg translate
- } if
- } if
- shrink 0 ne
- {
- ITransBBox
- Dury Dlly sub Pury Plly sub div
- Durx Dllx sub Purx Pllx sub div
- 2 copy gt { exch } if pop
- shrink 1 eq
- {
- Durx Dllx add 2 div Dury Dlly add 2 div translate
- dup scale
- Purx Pllx add -2 div Pury Plly add -2 div translate
- }
- {
- shrink 2 eq 1 index 1.0 lt and
- {
- Durx Dllx add 2 div Dury Dlly add 2 div translate
- dup scale
- Purx Pllx add -2 div Pury Plly add -2 div translate
- }
- { pop }
- ifelse
- }
- ifelse
- } if
- end
- } [/autorotate? /shrink? /mirH? /mirV? /angle /Pury /Purx /Plly /Pllx /Durx /Dury /Dllx /Dlly /PW /PHt /DW /DHt
- /Devurx /Devury /Devllx /Devlly /pdfHt /pdfW]
- bld
- /GClipBBox
- {
- gsave newpath clippath pathbbox newpath grestore
- /Dury exch def
- /Durx exch def
- /Dlly exch def
- /Dllx exch def
- ITransDBBox
- } [/Durx /Dury /Dllx /Dlly]
- bld
- /GPageBBox
- {
- {
- currentpagedevice /PageSize get aload pop
- /Devury exch def /Devurx exch def
- /Devllx 0 def /Devlly 0 def
- ITransBBox
- }
- stopped
- { GClipBBox }
- if
- } [/Devurx /Devury /Devllx /Devlly ]
- bld
- /ITransDBBox
- {
- Durx Dury transform matrix defaultmatrix itransform
- /Devury exch def
- /Devurx exch def
- Dllx Dlly transform matrix defaultmatrix itransform
- /Devlly exch def
- /Devllx exch def
- Devury Devlly lt {/Devlly Devury /Devury Devlly def def} if
- Devurx Devllx lt {/Devllx Devurx /Devurx Devllx def def} if
- } [/Durx /Dury /Dllx /Dlly /Devurx /Devury /Devllx /Devlly ]
- bld
- /ITransBBox
- {
- /um matrix currentmatrix matrix defaultmatrix matrix invertmatrix matrix concatmatrix def
- Devllx Devlly um itransform
- Devurx Devury um itransform
- /Dury exch def
- /Durx exch def
- /Dlly exch def
- /Dllx exch def
- Dury Dlly lt {/Dlly Dury /Dury Dlly def def} if
- Durx Dllx lt {/Dllx Durx /Durx Dllx def def} if
- } [ /um /Durx /Dury /Dllx /Dlly /Devurx /Devury /Devllx /Devlly ]
- bld
- %%EndResource
-